{% extends "index.html" %}
{% block meta %}
<meta name="title" content="{{entry.title}}" />
<meta name="description" content="{{entry.summary}}" />
{% endblock %}
{% block mainmenu %}
<div class="button" onclick="javascript:document.location='/'">News</div>
{% if user.is_authenticated %}
<div class="button" onclick="javascript:document.location='/folders'">Folders</div>
<div class="button" onclick="javascript:document.location='/groups'">Groups</div>
<div class="button" onclick="javascript:document.location='/search'">Search</div>
<div class="button" onclick="javascript:document.location='/profile'">Profile</div>
<div class="button" onclick="javascript:document.location='/logout'">Logout</div>
{% else %}
<div class="button" onclick="javascript:document.location='/openid/login'">Sign in</div>
{% endif %}
{% endblock %}

{% block main %}
<div style="width:50%">
<div class="entry" id="entry{{entry.id}}">
<div style="display:table-cell;width:100%;padding-bottom:3px;">
<h3><a href="javascript:favorite({{entry.id}});"><img src="/img/star.png" style="padding-right:5px;"/></a><a href="/entry/{{entry.id}}">{{ entry.title }}</a>
<a href="javascript:tweetentry('{{entry.url}}','{{entry.title}}',{{entry.id}})" name="tweet{{entry.id}}" ><img src="/img/twitter.ico" alt="Tweet this!" title="Tweet this!"></img></a>
<a href="javascript:facebook_share('{{entry.url|escapejs}}','{{entry.title|escapejs}}')"><img src="/img/facebook.ico" alt="Share on Facebook" title="Share on Facebook"></img></a>
<a href="javascript:bookmark_on_delicious('{{entry.url}}','{{entry.title}}');"><img src="/img/delicious.ico" height="10" width="10" alt="Bookmark this on Delicious" title="Bookmark this on Delicious"></img></a>
</h3>
</div>
<div class="timestamp" style="display:table-cell;white-space: nowrap;">{{entry.created}}</div>
<div class="undercomment"><a href="{{entry.url}}">{{entry.url}}</a></div>
{% autoescape off %}
{{entry.summary}}
{% endautoescape %}
</div>

</div>
{% endblock %}

{% block accordion %}
{% endblock %}